<!--
    MetroCell.vue
    gree_ctm

    Created by 汪明 on 18:01.
 -->
<template>
    <view class="MetroCell" v-if="metro.length > 0">
        <view class="item_view" v-for="(item,index) in metro" :key="item.thumbUrl">
            <image :src="getConfig().imageURL(item.thumbUrl)"></image>
            <text class="item_name">{{ item.activityName }}</text>
        </view>
    </view>
</template>

<script setup lang="ts">
import getConfig from "@/api/config";
import type {Banner} from "@/Types/HomeTypes";
const props = defineProps<{
    metro:Banner[]
}>()
</script>

<style scoped lang="scss">
.MetroCell {
  box-sizing: border-box;
  padding-top: 7px;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;

  .item_view {
    box-sizing: border-box;
    padding-top: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 20%;

    image {
      width: 46px;
      height: 46px;
    }

    .item_name {
      padding-top: 5px;
      font-size: 12px;
      color: #333333;
      z-index: 0;
    }
  }
}
</style>
